﻿using System.ComponentModel.DataAnnotations;

namespace DEL.Webmonitor
{
    /// <summary>
    /// 对象名称：监控网站信息配置数据实体类（数据实体层）
    /// 对象说明：该类作为数据载体，供业务逻辑层、数据访问层调用。
    /// 作者姓名：yb
    /// 编写日期：2015-6-26 10:58:07
    /// </summary>

    public class WebsiteJK:BaseT
    {
        //[Key]
        //[Display(Name = "序号")]
        //public int? Id { get; set; }

        [Display(Name = "网站类型Id")]
        public int WebsiteTypeId { get; set; }
        [Display(Name = "网站名称")]
        public int WebsiteId { get; set; }
        [Display(Name = "栏目名称")]
        public string BigclassName { get; set; }
        [Display(Name = "栏目URL")]
        public string BigclassUrl { get; set; }
        [Display(Name = "监控间隔")]
        public int JkTime { get; set; }
        [Display(Name = "编码")]
        public string Coding { get; set; }
        [Display(Name = "块正则")]
        public string RegexBlock { get; set; }
        [Display(Name = "目正则")]
        public string RegexList { get; set; }
        [Display(Name = "URL前缀")]
        public string PrefixUrl { get; set; }       
        [Display(Name = "解密函数")]
        public string Decryption { get; set; }       
        [Display(Name = "是否保存原始网页")]
        public bool IsSaveOriginalInfo { get; set; }
        [Display(Name = "是否启用监控")]
        public bool IsJK { get; set; }

        /// <summary>已重写的ToString方法，当该类作为其它类的一个属性时，在数据控件中可以直接绑定并显示其有意义的名称。</summary>
        public override string ToString()
        {
            return BigclassName;
        }

       
    }
}
